<%inherit file="/autohandler"/> 
<h2>
Playlists
</h2>

<table>
% for p in c.playlists:
<tr>
<td>${ h.link_to(p['name'], h.url_for(action="displayplaylist", id=p['index'], name=p['name']))}</td>
${ h.form(h.url_for(action='deleteplaylist'), multipart=True) }
<td>
${ h.submit('Delete') }
</td>
${ h.hidden_field('playlistname', value=p['name']) }
${ h.end_form() } 
</tr>
% endfor
<table>

<hr>
Add new playlist:
${ h.form(h.url_for(action='addplaylist'), multipart=True) } 
${ h.text_field('newplaylist') }
${ h.submit('Add') } 
${ h.end_form() } 

